﻿using Iesi.Collections.Generic;
using NHibernate.Validator.Constraints;
using TestBat.IModels.Domain;

namespace TestBat.Models.Domain
{
    public abstract class ChoiceTask : Task, IChoiceTask
    {
        public ChoiceTask()
        {
            Choices = new HashedSet<IChoice>();
        }

        [NotNull]
        [Length(99999)]
        public virtual string Question
        {
            get;
            set;
        }

        public virtual ISet<IChoice> Choices
        {
            get;
            private set;
        }
    }
}
